function queryBankForm(pageIndex,pageSize)
{
          var url =base+"/bankAccount/pageBankAccountList.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#bankContent").load(url+"&"+ encodeURI(encodeURI(params)));
}


 


function toEditBankAccountInfo(accoutId)
{
    location.href=base+"/bankAccount/toEditBankAccount.do?accoutId="+accoutId;
}
 
 
function addBankAccountInfo()
{
   location.href=base+"/bankAccount/toRegBankAccount.do";
}


function saveBankAccount()
{
	          var accountName=jQuery("#accountName").val();
	          var accountId=jQuery("#accountId").val();
	          var depositBank=jQuery("#depositBank").val();
	          if(!accountName)
	           {
	         	  alert("持卡人姓名不能为空!");
	        	  return jQuery("#accountName").select();
	           }
	          if(!accountId)
	           {
	        	  alert("账号卡号不能为空!");
	        	  return jQuery("#accountId").select();
	           }
	          if(!depositBank)
	           {
	        	  alert("账号开户行不能为空!");
	        	  return jQuery("#depositBank").select();
	           } 
               jQuery("#bankAccountForm").ajaxSubmit(
                  {
                  success:function(data){ 
                      var data=eval("("+data+")");
                      if(data.STATUS==0)
                     {
                     alert("保存成功!");
                     location.href=base+"/bankAccount.do";
                       return ;
                     }
                      alert(data.MSG);  
                   }
                 }
            );
}